package observer;

public class Test {
    public static void main(String[] args) {
        Subject subject = new NewsSubject();
        subject.add(new OneObserver());
        subject.add(new TwoObserver());
        subject.notify("重大新闻都来听啊！");
    }
}
